package marina.model;

public class Account2VO {
	private String aid = "0";
	private int balance = 0;
	private double interestRate = 0;
	private String dateCreated;
	private double monthlyInterestRate;
	
	public Account2VO(String aid, int balance, double interestRate, String dateCreated){
		this.aid = aid;
		this.balance = balance;
		this.interestRate = interestRate;
		this.dateCreated = dateCreated;
	}
	
	public String getAid() {
		return aid;
	}
	public void setAid(String aid) {
		this.aid = aid;
	}
	public int getBalance() {
		return balance;
	}
	public void setBalance(int balance) {
		this.balance = balance;
	}
	public double getInterestRate() {
		return interestRate;
	}
	public void setInterestRate(double interestRate) {
		this.interestRate = interestRate;
	}
	public String getDateCreated() {
		return dateCreated;
	}
	public void setDateCreated(String dateCreated) {
		this.dateCreated = dateCreated;
	}
	
	public double getMonthlyInterestRate() {
		return monthlyInterestRate;
	}

	public void setMonthlyInterestRate(double monthlyInterestRate) {
		this.monthlyInterestRate = monthlyInterestRate;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		String result = "잔액 : " + balance + "\n" + "월간 이자율 : " + getInterestRate() + "\n" + "통장 개설 날짜 : " + dateCreated;
		return result;
	}
}
